package main

import (
	grpc2 "google.golang.org/grpc"
	"zy4/common/consul"
	"zy4/common/grpc"
	"zy4/common/nacos"
	"zy4/common/viper"
	"zy4/service/internal"
)

func main() {
	viper.Init()
	nacos.NewNaCos()
	//nac:=nacos.Nacoss{}
	consul.Consul()

	grpc.RegisterGrpc("127.0.0.1", 8001, func(server *grpc2.Server) {
		internal.Register(server)
	})
}
